package BookTest;

public class C8Test {
    public static void main(String[] args) {

        C8Cresident b = new C8Cresident();
       if(b instanceof C8PublicServant){
           System.out.println("总统是公务员");
       }else{
           System.out.println("总统不是公务员");
       }
        C8PublicServant c = new C8PublicServant();
       b.word();
       c.word();
    }
}
